package com.lcs.springcloud;

import com.lcs.config.RibbonConfig;
import com.lcs.config.rule.LoadBalancerRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableFeignClients
//@RibbonClients(value={
//        @RibbonClient(value="stock-service", configuration = RibbonConfig.class)
//})
@LoadBalancerClients(value = {
        @LoadBalancerClient(value="stock-service", configuration = LoadBalancerRule.class)
})
public class OrderNacosApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderNacosApplication.class);
    }
}
